package com.efast.dmom.equipment.controller;

import java.util.List;

import com.efast.dmom.equipment.bean.EquipHomeTaskParamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import com.efast.cafe.portal.bean.query.QueryBean;
import com.efast.dmom.equipment.bean.EquipInterferSpecificDataBean;
import com.efast.dmom.equipment.service.masterdata.EquipTaskPageService;

@Controller
@RequestMapping("/equipment")
public class EquipTaskPageController {

	@Autowired
	private EquipTaskPageService equipTaskPageService;
	
	@RequestMapping(value = "/repair/{orderNumber}", method = RequestMethod.POST)
	public  @ResponseBody EquipInterferSpecificDataBean selectRepairEquipResume(@PathVariable String orderNumber){
		return equipTaskPageService.selectRepairEquipResume(orderNumber);
	}
	
	@RequestMapping(value = "/repair/taskBase", method = RequestMethod.POST)
	public @ResponseBody EquipHomeTaskParamBean queryEquipRepairBase(@RequestBody EquipHomeTaskParamBean querys){
		return equipTaskPageService.queryEquipRepairBase(querys);
	}
}
